﻿using MiniFox.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DMC.Core.Models.Dto
{
    public class ExcelExportDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// excel模板文件(fileId)
        /// </summary>
        public string? Template
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string? DataLoader
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public int MaxRowCountPerSheet
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string? ExcelFormat
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public ExcelExportSheet[] Sheets
        {
            get;
            set;
        }
        public Dictionary<string, string>? Modules { get; set; } = new ();
    }
}
